package com.code;

import java.text.ParseException;

public interface PropertyBuilder {
	public short[] buildProperty(int code, int len, String value) throws Exception;
	public String translateData(byte[] datas, int len, int offset) throws Exception;
	public String encode(String pvalue, int length) throws Exception;
	public String decode(String pdata, int length) throws Exception;
	public Object parseValue(String pvalue) throws ParseException;
	public static final PropertyBuilderOfAsc AscBuilder=new PropertyBuilderOfAsc();
	public static final PropertyBuilderOfDateTime DatetimeBuilder=new PropertyBuilderOfDateTime();
	public static final PropertyBuilderOfFloat FloatBuilder=new PropertyBuilderOfFloat();
	public static final PropertyBuilderOfInteger IntegerBuilder=new PropertyBuilderOfInteger();
	public static final PropertyBuilderOfTime TimeBuilder=new PropertyBuilderOfTime();	
	public static final PropertyBuilderOfBoolean BooleanBuilder=new PropertyBuilderOfBoolean();
}
